<template>
  <div class="container">
    <!-- 序列征象 -->
    <div class="list-title">序列征象审核</div>
    <div class="list-content">
      <FormComp
        :form="seriesSettings.form"
        :form-options="seriesSettings.formOptions"
        :formRef="formRef"
        :disabled="disabled"
        @update:handle-change="handleChange"
      />
    </div>
  </div>
</template>
<script lang="ts" setup name="SequenceSign">
import { computed } from "vue";
import { useRoute } from "vue-router";
import FormComp from "./formComp.vue";
import type * as PHStoreType from "@/store/modules/processHeader/type";
const route = useRoute();
const props = defineProps({
  seriesSettings: {
    type: Object,
    default: {} as PHStoreType.LesionData,
  },
  formRef: {
    type: Object,
    default: {}
  }
});
const disabled = computed(() => {
  return route.query.type === "view";
});
const emit = defineEmits(["update:handleChange"]);
const handleChange = ($event: any) => {
  emit("update:handleChange", {
    $event,
    signType: true,
  });
};
</script>
<style lang="less" scoped>
.container {
  padding: 22px 0;
  .list-title {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    padding: 0 12px;
  }
  .list-content {
    font-size: 14px;
    color: #ccc;
    padding-bottom: 16px;
  }
}
</style>
